<template>
  <div class="timeline-wrap">
    <div class="timeline-header">
      <span>{{ title }}</span>
    </div>
    <div class="timeline-item" v-for="(item,index) in dataList" :key="index">
     
      <div class="timeline-item-content">
        <div style="display: flex;" v-for="(subItem,subIndex) in item.item" :key="subIndex">
          <span class="subItem-title" :style="{color:(subIndex==0?'#000':'#aaa'),fontSize:(subIndex==0?'14px':'12px')}" >{{ subItem.title }}</span>
          <div class="subItem-children" :style="{color:(subIndex==0?'#000':'#aaa'),fontSize:(subIndex==0?'14px':'12px')}">{{subItem.value}}</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'Timeline',
    data(){
      return {
        
      }
    },
    props: {
      title: {
        type: String
      },
      showWeather: {
        type: Boolean
      },
      dataList: {
        type: Array
      }
    }
  }
</script>

<style lang="scss" scoped>
@import "@/style/timeline.scss";
</style>